International cash management software using machine learning

ABSTRACT

A method and apparatus for improving the management of cash and liquidity of an organization utilizing a plurality of currency accounts is described. The improvements optimize the interest earnings for the cash balances in each currency account, and minimizes the expenses related to funding the currency accounts. Machine learning techniques are incorporated to forecast payments, receipts, interest rates and currency exchange rates, and then cash is transferred or borrowed or loaned to fund the payments and utilize available cash.

BACKGROUND Prior Application

This application is a priority application.

TECHNICAL FIELD

The system, apparatuses and methods described herein generally relate to cash management software, and, in particular, to using machine learning to improve international cash management.

DESCRIPTION OF THE RELATED ART

The term cash management is used to describe the optimization of cash flows and investment of excess cash. From an international perspective, cash management is very complex because laws pertaining to cross border cash transfers differ amount countries. In addition, exchange rate fluctuations can affect the value of cross boarder cash transfers. Financial software needs to understand the advantages and disadvantages of investing cash in foreign markets so that it can make international cash management decisions to maximize corporate value.

For a multinational corporation, revenues and expenses occur in multiple countries and currencies. By optimizing cash locations and borrowing or investing, significant value can be created solely within the corporate treasury function. While cash management is a complex in a single entity operating in a single currency, in a multinational corporation with multiple subsidiaries, cash management is a vastly complex operation requiring complex software systems that are networked with multiple banks in multiple locations around the world, each with multiple accounts.

International cash management software must quickly identify incoming cash and to accelerate cash inflows, since the more quickly the inflows are received and identified, the more quickly they can be invested or used to pay obligations. The currency and location of the inflows are also important.

Payments are a second aspect of the cash management software, understanding the obligations and the timings of these payments. Once again, where the payment comes from, which country, which bank, which account and which currency are all important factors for the software to consider.

Another technique for optimizing cash flow movements, netting, can be implemented by the centralized cash management software. This technique optimizes cash flows by reducing the administrative and transaction costs that result from currency conversion. First, netting reduces the number of cross-border transactions between subsidiaries, thereby reducing the overall administrative cost of such cash transfers. Second, it reduces the need for foreign exchange conversion since transactions occur less frequently, thereby reducing the transaction costs associated with foreign exchange conversion. Third, cash flow forecasting is easier since only net cash transfers are made at the end of each period, rather than individual cash transfers throughout the period. Improved cash flow forecasting can enhance financing and investment decisions.

A multilateral netting system usually involves a more complex interchange among the parent and several subsidiaries. For most large multinational corporations, a multilateral netting system would be necessary to effectively reduce administrative and currency conversion costs. Such a system is normally centralized so that all necessary information is consolidated. From the consolidated cash flow information, net cash flow positions for each pair of units (subsidiaries, or whatever) are determined, and the actual reconciliation at the end of each period can be dictated. The centralized group may even maintain inventories of various currencies so that currency conversions for the end-of-period net payments can be completed without significant transaction costs.

Laws related to netting and local government blockage of fund transfers also add to the complexity to international cash management.

Many multinational corporations have at least $100 million in cash balances across banks in various countries. If they can find a way to earn an extra 1 percent on those funds, they will generate an extra $1 million each year on cash balances of $100 million. Thus, their short-term investment decision affects the amount of their cash inflows. Their excess funds can be invested in domestic or foreign short-term securities. In some periods, foreign short-term securities will have higher interest rates than domestic interest rates.

Centralized cash management is more complicated when the corporation uses multiple currencies. All excess funds could be pooled and converted to a single currency for investment purposes. However, the advantage of pooling may be offset by the transaction costs incurred when converting to a single currency.

Centralized cash management is also valuable. The short-term cash available among subsidiaries can be pooled together so that there is a separate pool for each currency. Then excess cash in a particular currency can still be used to satisfy other subsidiary deficiencies in that currency. In this way, funds can be transferred from one subsidiary to another without incurring transaction costs that banks charge for exchanging currencies. This strategy is especially feasible when all subsidiary funds are deposited in branches of a single bank so that the funds can easily be transferred among subsidiaries.

Another possible function of centralized cash management is to invest funds in securities denominated in the foreign currencies that will be needed by the subsidiaries in the future. Corporations can use excess cash to invest cash in international money market instruments so that they can cover any payables positions in specific foreign currencies. If they have payables in foreign currencies that are expected to appreciate, they can cover such positions by creating short-term deposits in those currencies. The maturity of a deposit would ideally coincide with the date at which the funds are needed. By integrating with the payments software, the treasury software knows when cash outflows will occur.

International cash management requires timely information across subsidiaries regarding each subsidiary's cash positions in each currency, along with interest rate information about each currency. A centralized cash management software system needs a continual flow of information about currency positions so that it can determine whether one subsidiary's shortage of cash can be covered by another subsidiary's excess cash in that currency. Given the major improvements in online technology in recent years, all multinational corporations can easily and efficiently create a multinational communications network among their subsidiaries to ensure that information about cash positions is continually updated.

The Payment & Cash Management (PCM) 110 solution provides corporate clients with a single centralized solution for all banking relationships that is secure, smart and compliant. PCM reduces complexity, cost and risks implied by the use of multiple channels and connectivity to retrieve cash positions from diverse bank accounts.

The modules seen in FIG. 1 effectively create a multi banking platform 110 independent of various bank 121-126 relationships, with configurable workflow allowing both simple straight through processing or approval patterns designed around business requirements. Resulting payments are seamlessly generated behind the scenes through a list of supported payment mechanisms such as BACS, Faster Payments (Direct Corporate Access) and the SWIFT Gateway. Additional connectivity is achieved with an H2H or an API connection with dedicated banks 121-126.

PCM 110 assists clients manage their short term cash position by centralizing bank account balances and transaction data in one place, PCM 110 provides an accurate picture of cash liquidity regardless of bank, currency, geography, head office or subsidiary and also enables cash forecasting.

In its most basic version, PCM 110 can be used as a multi-network payment gateway using the BT Universal Aggregator 120. In addition, format validation and sanction screening capabilities can be enabled.

On top of the multi-network gateway, PCM 110 can enable a Statements Manager 112 module which brings added-value features to the inbound workflow, taking advantage of the data coming from the banks 121-126 (i.e. bank statement and confirmations).

On top of the multi-network gateway, PCM 110 can enable a Payments Manager 111 module which brings added-value capabilities to the outbound workflow. This payment manager 111 module can be coupled with a sanction screening 116 module. The sanction screening 116 module may use artificial intelligence to create and compare a profile of the transaction to profiles of sanctioned entities, and block the transactions that match a sanctioned entity.

When already combining the payment 111 and statement manager 112, a Cash Manager 115 can be enabled to bring cash management added-value features.

All of this analysis and planning is extremely complex, and operates best with a context of the history of payments and receipts in various currencies. To manage the complexities, a machine learning based solution can greatly improve other solutions.

Machine learning and artificial intelligence algorithms are seen in the computer science literature for the past half century, with slow progress seen in the predictive analytics realm. We can now take a large data set of various features, and process that learning data set through one of a number of learning algorithms to create a rule set based on the data. This rule set can reliably predict what will occur for a given event. For instance, in a cash management application, with a given event (set of attributes, i.e. payments and receipts), the algorithm can determine if the likely cash needs.

Machine learning is a method of analyzing information using algorithms and statistical models to find trends and patterns. In a machine learning solution, statistical models are created, or trained using historical data. During this process, a sample set of data is loaded into the machine learning solution. The solution then finds relationships in the training data. As a result, an algorithm is developed that can be used to make predictions about the future. Next, the algorithm goes through a tuning process. The tuning process determines how an algorithm behaves in order to deliver the best possible analysis. Typically, several versions, or iterations of a model are created in order to identify the model that delivers that most accurate outcomes.

Generally, models are used to either make predictions about the future based on past data, or discover patterns in existing data. When making predictions about the future, models are used to analyze a specific property or characteristic. In machine learning, these properties or characteristics are known as features. A feature is similar to a column in a spreadsheet. When discovering patterns, a model could be used to identify data that is outside of a norm. For example, in a data set containing payments sent from a corporation, a model could be used to predict future payments in various currencies.

Once a model is trained and tuned, it is typically published or deployed to a production or QA environment. In this environment, data is often sent from another application in real-time to the machine learning solution. The machine learning solution then analyzes the new data, compares it to the statistical model, and makes predictions and observations. This information is then sent back to the originating application. The application can use the information to perform a variety of functions, such as alerting a user to perform an action, displaying data that falls outside of a norm, or prompting a user to verify that data was properly characterized. The model learns from each intervention and becomes more efficient and precise as it recognizes patterns and discovers anomalies.

An effective machine learning engine can automate development of machine learning models, greatly reducing the amount of time spent reviewing false positives, call attention to the most important items, and maximizes performance based on real-world feedback.

As treasury software has become more complex, especially in attempting to manage cash positions across multiple subsidiaries and currencies, a need has arisen to improve the cash management software with machine learning functionality so that cash inflow and outflow patterns can be analyzed to optimize the cash balances across currencies. The present set of inventions addresses this need.

BRIEF SUMMARY OF THE INVENTION

An improved cash management apparatus is one or more banking rails connected to one or more banks, a special purpose server connected to the one or more banking rails, and a plurality of data storage facilities connected to the special purpose server. The special purpose server is configured to retrieve a set of payment and receipt transactions from the plurality of data storage facilities for a given past date range, and perform a ARIMA analysis in each currency account on the set of payment and receipt transactions to create a forecast of receipts and a forecast of payments for a future date range. The special purpose server subtracts the forecast of payments from the forecast of receipts and adds in a previous day cash balance to create a forecast cash balance time series for each currency account. The special purpose server is configured to retrieve historical banking rate information and perform the ARIMA analysis on the historical banking rate information to create a forecast banking rate information time series. The special purpose server is configured to execute an algorithm on the forecast cash balance time series for each currency account and the forecast banking rate information time series to determine a set of optimal cash transfers between each currency account and one or more sweep accounts, and then the special purpose server executes instructions to make payments and cash transfers.

The algorithm could be a machine learning algorithm, and the machine learning algorithm could be DensiCube, Random Forest, or K-means. The future date range and/or the given past date range could be user configurable. The forecast of payments could be modified to incorporate actual planned payments. And the forecast of receipts could be modified to incorporate actual incoming receipts. The execution of instructions to make payments and cash transfers could be made by transferring one or more files to the plurality of banking rails. The currency accounts could include the currency accounts for a plurality of subsidiaries. The bank rate information could be retrieved from one or more banks over the banking rails. The bank rate information could include interest rates, foreign exchange rates and money transfer costs.

A method for managing cash in an organization is also described here. The method is made up of the steps of (1) retrieving a set of payment and receipt transactions from a plurality of data storage facilities for a given past date range for a plurality of currency accounts with a special purpose server that is connected to the plurality of data storage facilities; (2) performing an ARIMA analysis in each currency account on the set of payment and receipt transactions creating a forecast of receipts and a forecast of payments for a future date range; (3) subtracting, with the special purpose server, the forecast of payments from the forecast of receipts and adding in a previous day cash balance to create a forecast cash balance time series for each currency account; (4) retrieving historical banking rate information to the special purpose; (5) performing the ARIMA analysis on the historical banking rate information to create a forecast banking rate information time series; (6) executing, using the special purpose server, an algorithm on the forecast cash balance time series for each currency account and the forecast banking rate information time series to determine a set of optimal cash transfers between each currency account and one or more sweep accounts; and (7) executing, by the special purpose server, instructions to make payments and cash transfers.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a payment and cash management system.

FIG. 2 is a sample screen showing four currency accounts and a group of payments.

FIG. 3 is a diagram of the various functions of the cash management system.

FIG. 4 is a flow chart of the periodic process to pay bills.

FIG. 5 is a diagram of one possible hardware environment for operating the outcome creation engine.

FIG. 6 is a flowchart showing rule generation.

FIG. 7 shows a K-beam search based on rule specialization.

FIG. 8 is a flow chart of rule specialization and evaluation.

FIG. 9 illustrates a rule generation process with the internal rule list and the final model rule list.

FIG. 10 is an electrical architecture of one embodiment.

FIG. 11A is a diagram showing horizontal fragmentation of the data across multiple sites.

FIG. 11B shows a diagram showing vertical fragmentation of attributes across multiple sites.

FIG. 12 is a view of a virtual feature table showing the distributed entities.

FIG. 13 is a view of a database distributed over three servers.

FIG. 14A is a graphical view of the data from FIG. 8 from one of the servers.

FIG. 14B is a graphical view of the data from FIG. 8 from two of the servers.

FIG. 15 illustrates the communication between the Distributed DensiCube components.

FIGS. 16A and 16B show modifications to the scoring algorithm to support privacy preserving in the data silos.

FIG. 17 is an overview of the distributed data structure upon which the distributed machine learning algorithm is performed.

FIG. 18 is a flowchart showing the distributed nature of the Distributed DensiCube algorithm.

DETAILED DESCRIPTION

The present invention is now described in detail with reference to the drawings. In the drawings, each element with a reference number is similar to other elements with the same reference number independent of any letter designation following the reference number. In the text, a reference number with a specific letter designation following the reference number refers to the specific element with the number and letter designation and a reference number without a specific letter designation refers to all elements with the same reference number independent of any letter designation following the reference number in the drawings.

Beginning with FIG. 1 , the corporate data is pulled from the ERP 101 a system (enterprise resource planning), the TMS 101 b system (transportation management system), and the accounting 101 c systems through a secure channel 107 to the PCM 110. In addition, users using a personal computing device such as a personal computer 104, a smartphone 105, a tablet, a laptop, a smart watch, or similar device through a secure network access 106 can configure, manage, observe, and operate the PCM 110. The secure network access 106 communicates through the secure channel 107 to provide the computing devices 104, 105 with access to the PCM 110 modules.

The secure channel 107 interfaces with the integration layer 113 of the PCM 110. This channel 107 provides access between the corporate facilities, through the integration layer 113, to the payments manager 111, the statements manager 112, the audit and security 114 module, and the cash manager 115.

On the other side of the PCM 110, the integration layer 113 interfaces with the universal aggregator network gateway 120. The universal aggregator 120 provides access to a number of banks 121-126 using a number of different protocols (SWIFT, ACH, RTP, BACS, etc.) and networks (banking rails 504).

The messages between the universal aggregator 120 and the integration layer 113 are made up of bank statements 118, account balances, interest rates, costs for wire transfers, and foreign exchange rates coming into the PCM 110. The integration layer 113 sends payment messages 119, as well as messages to transfer funds, loan funds, and borrow funds. In addition, message acknowledgements and other housekeeping information are exchanged.

The universal aggregator 120 sends and receives information from the banks 121-126 through the various banking rails 504.

The payment manager module 111 provides full visibility on payments lifecycle from input (import or manual creation) to confirmation by the bank. PCM 110 allows importing transactions files from ERP 101 a, TMS 101 b, DBMS 101 c or any other backend application through a secure channel 107. The payments manager 111 then validates the payment, and gathers approvals through an approval workflow, and prepares the payment for sending to the bank rails. However, before the payment is released, the payments go to the cash manager 115 to assure that funding is available.

The security model 114 enables the granular control of entitlements or access rights allowing access to be controlled based on functionality and data. The user will only see the functionality and data to which he has been granted access.

The statement manager module 112 gives clients the ability to control and monitor proper receipt of statements, and link these to account and business units in static data. PCM module 110 will import all data contained into the bank statement (End of Day and Intraday) which allows clients to control balances and transactions. Statements from partner banks are displayed in exactly the same way, regardless of bank, country, currency or format.

PCM 110 can interface with a Sanction Screening module 116. This module 116 will check transactions against sanction lists maintained by various government entities that prohibit transactions with sanctioned entities. Transaction sanction screening 116 is performed after authorization and before sending of the transaction over a network. Similarly, the risk and fraud management module 117 checks transactions for fraud by performing various analytics to prevent fraudulent payments.

The PCM 110 cash manager 115 incorporates functions for managing liquidity 301, cash forecasting 302, and cash pooling 303. See FIG. 2 for a sample screen 200 of the cash management function. The tiles on the bottom of the screen show the payments 202 that are pending. Each payment tile has a flag indicating the country where the payment is to be made along with an indication of the currency (USD, GBP, EURO, AUD, etc.) and the account number. The amount of the currency is shown on the tile, as well as the number of payments included and the date when the payment is due. The status of the payment is also included in the tile (APPROVED, PAID, COMPLETE, REJECTED, ARCHIVED, CANCELLED, ERROR, IN PROGRESS, etc).

The top of the screen shows the balances of each currency account 201. Each tile shows one currency, the account balance in that currency, and a chart showing the amount available for payment and the pending payments. A warning triangle is shown when the payments exceed the balance in that currency. The user is given the option to convert funds into the currency or to directly fund the account.

The PCM 110 in FIG. 3 uses current bank account balances and high value cash transaction information to facilitate cash management. The Cash Manager module 115 comprises a consolidated view of accounts, short term cash forecast, and the capability of generating cash transfers between accounts. The consolidated view of all bank accounts 200, the ‘liquidity view’ 301, provides users with a hierarchically organized view of the current and available funds balance across all accounts.

Users can configure hierarchical groups of accounts 311 for cash management purposes. A typical hierarchy consists of a lead account, with subsidiary accounts in the same currency. Multiple account hierarchies may be defined and these hierarchies can then be used by the Liquidity View 301 and Cash Forecasts 302. New account hierarchies can be defined for Cash Pooling 303 purposes.

Transactions, either passing through the payments process, or captured directly (in the case of expected receipts) from back office systems are brought into the consolidated cash ledger 312. Here they are matched against confirmation messages, interim statements and bank statements in order to identify the current “open” transactions yet to be reported on a bank statement.

For accounts that are being actively managed through the PCM User Interface, daily Bank Statements 321 are loaded through file interface automatically with a batch. These bank statements 321 are used to provide a closing position for the previous day. Additional information is derived from the debit and credit confirmations 322, the outboard payments 323 and the adjusting transactions 324. The closing balance acts as the opening balance for the current position. The bank statement is also reconciled against the current “open” transactions for the day and matching transactions are closed.

By combining and matching your organization's transactions and your partner banks transactions, PCM can create an accurate representation of the short term cash forecast. The integration, statement processing, and transaction matching processes are automated background tasks and require no user intervention. The short term cash forecast module displays the current balance+/−pending payments, transfers and expected receipts for the coming days.

PCM Forecasting 302 features include the creation and administration of user's hierarchical cash forecasting structures that are bank independent, standard cash forecasts based on a 5 day liquidity forecast, drill down capability to display forecasted transactions against individual accounts, addition of single or repetitive manual adjustments to cash forecast (for repetitive adjustments, a background process—scheduled on the daily run list, will automatically add the recurring adjustment to the cash forecast), conversion of account balances into account hierarchy currency (uses the exchange rates, stored as static reference data to estimate the conversion between currencies), visual indicators against each account to show if the expected statements or confirmations have been received.

Ledger 312 adjustment can be made directly in PCM 110 to reflect business scenarios outside of the system. Standard adjustment details can be added (account, amount, date, repeat option and start day of month). Users can also search on ledger adjustments, view details of individual ledger adjustments and export the results in the same manner as for payments.

In conjunction with the short term liquidity forecast 302, the liquidity management functionality may be enabled to provide visibility of cash positions as it displays the current and available funds balance across all accounts in the selected account hierarchy. The liquidity management features include the creation and administration of user's own hierarchical cash reporting structures that are bank independent, drill down capability to display statement lines against each account along with intraday transactions, closed balance display and available funds display and conversion of account balances into account hierarchy currency (uses the exchange rates, stored as static reference data to estimate the conversion between currencies).

The cash management 115 can be used to implement cash pooling 303 both across a group or locally as required. Cash pool views can be created from a cash account hierarchy 311. To control the sweeping and funding process, the following parameters can be defined for each account in the cash pool: transfer action (sweep and funds, fund only, report only), minimum transfer, rounding, minimum balance, and target balance. Cash pool controls 313 define the operating rules of the cash pooling 303.

In addition the cash manager 115 provides the functionality of automatically funding the cash positions in various currencies and in various accounts (or it could provide suggestions to a human cash manager). This feature interprets the current cash forecast, and the parameters set up for the accounts in the cash pool and implements transactions to sweep surplus cash into the lead account for the group or fund subsidiary accounts from the lead account in the group. This operation is repeated for each level in the account hierarchy. The transfers will be executed automatically (or created for authorization). Cross-currency cash pools can be configured, and these will use the exchange rates, stored as static reference data to estimate conversions between currencies.

FIG. 4 shows a flow chart of the machine learning required to automatically determine the appropriate funding in each currency and in each account. First of all, the historical transactions of the business are pulled from the accounting 101 c, TMS 101 b and ERP 101 a systems, filtering 402 these transactions to isolate the receipts and the payments within a review period. This review period is the amount of time, perhaps a month, a quarter, a year, or a decade. The review period should be sufficiently long to generate a large number of receipts and payments, enough to create statistically significant data. In addition, the review period should be long enough to cover several seasonal periods. For some businesses, a season could be a month, for others it is a year. In some embodiments, the review period is determined by a machine learning algorithm testing the quality of the resulting data over a variety of period values and choosing the best value for the available data.

Next, an autoregressive integrated moving average (ARIMA) 403 is run against the data. An autoregressive integrated moving average (ARIMA) model is a generalization of an autoregressive moving average (ARMA) model. Both of these models are fitted to time series data either to better understand the data or to predict future points in the series (forecasting). ARIMA models are applied in some cases where data show evidence of non-stationarity, where an initial differencing step (corresponding to the “integrated” part of the model) can be applied one or more times to eliminate the non-stationarity. The ARIMA model is considered a machine learning technique within the field of artificial intelligence technology.

In some embodiments, the ARIMA model is run, and then all outliers beyond one or two standard deviations, are removed from the dataset, and the data run again. Particularly with receipts and payments, occasionally a very large payment for a large job or a past due client suddenly pays up. This may throw off the predictive values, and are best removed from the data, unless there is reason to know that this is a periodic event.

Given a time series of data X where t is an integer index and the X are real numbers, an ARIMA (p, d, q) model is given by

${\left( {{1 - \overset{p}{\sum\limits_{i = 1}}} \propto_{i}L^{i}} \right)\left( {1 - L} \right)^{d}X_{t}} = {\left( {1 - {\sum\limits_{i = 1}^{q}{\theta_{i}L^{i}}}} \right)\varepsilon_{t}}$

where L is the lag operator, the ∝_(i) are the parameters of the autoregressive part of the model, the θ_(i) are the parameters of the moving average part and the ε_(t) are error terms. The error terms ε_(t) are generally assumed to be independent, identically distributed variables sampled from a normal distribution with zero mean. The parameter p is the order (number of time lags) of the autoregressive model, d is the degree of differencing (the number of times the data have had past values subtracted), and q is the order of the moving-average model.

The ARIMA model 403 is run on the receipts and payments separately for each currency and each account, with each predicting the receipts and payments for each currency-account group. The ARIMA model 403 provides the time series X_(t) for receipts and payments for each currency-account the next 15 or 30 days. Treasury function in-flows or out-flows (funding loans or transfers or investments) are not included in this calculation.

Since payments are typically paid 30 or so days after receipt, and the approval process takes 7-14 days, so the PCM 110 knows perhaps 15 days' worth of actual payments (other periods could be used for other embodiments). These actual payments 404 are factored into the future payments time series. In some cases, several days' worth of receipts may also be known in advance, depending on the characteristics of the bank account and banking rails. If known in advance, the receipts are also switched to actual values.

Once the time series X_(i) for receipts and the time series X_(i) for payments are determined, the running balance is calculated by taking the previous balance in the currency account and subtracting the payments X_(i) for the day and adding the receipts X_(i) for the day to obtain the account balance for the end of the day (cash forecast 405). A fifteen day forecast should be fine, but other durations could be used without deviating from these inventions. In some embodiments, this number is configurable. The results of the calculations are assembled into a cash flow time series for the future X_(i).

Next, data associated with interest rates for loans and investments, both current and historical, for each currency and account location, are collected 406, along with the costs for wire transfers and other forms of money transfers. The spread between sell and buy of the various currencies is also collected, both present and historical values, to determine the foreign exchange rate costs.

The time series for exchange rates and interest rates are run through an ARIMA model to predict the interest rates and exchange rates for the coming fifteen days (or whatever window is being used for payments and receipts).

Each currency account is analyzed 407 to maximize the value of the entire universe of currency accounts. First, critical cash needs are identified by reviewing each currency account for predicted negative balances for the current day. These accounts need funding to cover the payments due in the current day. For example, in one embodiment, based on previous recorded user behavior (foreign exchange, swapping and funding) a machine learning algorithm proposes a number of operations for final validation: change of currency to have an appropriate balance between main currency recorded, funding accounts that are in overdraft, but also moving cash to interest earning accounts. Also, following the previous behavior of the system will allocate cash per counterparty to mitigate risk exposure. In case of negative interest existing on accounts in a specific currency, the system will propose to empty those accounts and swap the currencies against account in currency who generate positive interest.

Regarding payment rejection, the machine learning/artificial intelligence algorithm will propose predictive and prescriptive analytics. For example, a payment that has been rejected before will be flagged and correction in the data will be proposed, also a payment type channel and route will be analyzed against cut off time and cost per channel banks and alternative channel and route will be proposed to reduce the cost of payments.

Regarding cash exposure and foreign exchange exposure the system will be able to predict variation and encourage mitigation risk actions, for example but non exhaustively predict that the US Dollar is going up against the Sterling and propose SWAP and Forward FX operation to mitigate loss exposure.

The entire universe of currency accounts is optimized using multivariate forecasting techniques. In one embodiment, the algorithm to optimize the sum of the balances of all of the currency accounts is a mathematical formula. For each day of the future time series, the currency accounts are searched for negative balances. For each account with a negative balance, the accounts with positive balances are searched for the currency with the lowest interest rate and the lowest cost to transfer to the currency with the shortfall. The transfer instructions are then recorded and if necessary, additional funds are sought. Then the funding for the next account with a shortfall is sought until all of the accounts have funding. Then the accounts with a positive balance are defunded to a sweep account in that currency.

In another embodiment, a machine learning algorithm such as K-means, Random Forrest, or DensiCube (see U.S. Pat. No. 9,489,627, issued to Jerzy Bala on Nov. 8, 2016, said patent incorporated herein in its entirety and U.S. patent application Ser. No. 16/355,985, filed by Jerzy Bala and Paul Green on Mar. 18, 2019, said patent application incorporated herein in its entirety) is used to try various scenarios for cash transfers, borrowing and funding to optimize the balance at the end of the future forecast period. The fields could be the currency, the cash, the interest in, the interest out, the transfer cost, and the foreign exchange rate to various currencies. A second dimension of the fields could be each day of the forecast period. And the attributes could be the currency accounts. Each combination of cash movements is calculated to determine a sum for the scenario (across the entire forecast period and all currency accounts), and the cash movements related to the best scenario is stored until a better scenario is found. Rather than using a F-score as a quality metric, the cash sum could be used as the quality metric. The best scenario at the end of the analysis is then saved as the cash movement plan. The output of the machine learning algorithm is a rules set that dictate the cash movements. In some embodiments, this rules engine is used as the cash movement plan for a single day; in other cases the rules could be used as the cash management plane for a short period, perhaps a week. See the discussion below for more detailed information on the distributed Densicube algorithm.

In the operations of the machine learning module over a window of a longer period (perhaps a week, 15 days or a month), the goal is to find opportunities to invest the money in longer term, higher interest rate notes, such as a 15-day certificate of deposit, rather than solely investing in overnight sweep accounts. The same is true for borrowing money or for transferring cash between accounts: by looking at the longer term, better rates and lower transaction costs can be achieved.

Once the funding plan is calculated, the cash manager 115 moves the money 408 according to the plan to the appropriate account, borrowing or investing money as specified in the plan. Once funding is in place, the payments for the day are paid 409 from the appropriate currency account.

Because of the complexities of machine learning algorithms, special purpose computing may be needed to build and execute the machine learning model described herein. FIG. 5 shows one such embodiment. The user configures the PCM 110 monitors the currency account status 200 on a personal computing device such as a personal computer, laptop, tablet, smart phone, monitor, or similar device 501, 104, 105. The personal computing device 501, 104, 105 communicates through a network 502 such as the Internet, a local area network, or perhaps through a direct interface to the server 503. The special purpose machine learning server 503 is a high performance, multi-core computing device (that includes floating point processing capabilities) with significant data storage facilities 101 a, 101 b, 101 c, 406 (hard disk drives, solid state drives, optical storage devices, RAID drives, etc) in order to store the transaction data for the PCM 110. Since these databases 101 a, 101 b, 101 c, 406 are continuously updated in some embodiments, this data must be kept online and accessible so that it can be updated. These data analytics require complex computation with large volumes of data, requiring the special purpose, high performance server 503. The server 503 is a high performance computing machine electrically connected to the network 502 and to the storage facilities 101 a, 101 b, 101 c, 406. In addition the server 503 requires connectivity to the banking rails 504 in order to have secure, high performance access to the banks 121-126 where the currency accounts are located. The foregoing devices and operations, including their implementation, will be familiar to, and understood by, those having ordinary skill in the art.

The following description outlines several possible embodiments to create models using distributed data. The Distributed DensiCube modeler and scorer described below extend the predicative analytic algorithms that are described in U.S. Pat. No. 9,489,627 to extend their execution in distributed data environments and into quality analytics. The rule learning algorithm for DensiCube is briefly described below. But the DensiCube machine learning algorithm is only one embodiment of the inventions herein. Other machine learning algorithms could also be used.

Rule Learning Algorithm

The rule learning algorithm induces a set of rules. A rule itself is a conjunction of conditions, each for one attribute. A condition is a relational expression in the form: A=V,

where A is an attribute and Vis a nominal value for a symbolic attribute or an interval for a numeric attribute. The rule induction algorithm allows for two important learning parameters 802: minimum recall and minimum precision. More specifically, rules generated by the algorithm must satisfy the minimum recall and minimum precision requirements 805 as set by these parameters 802. The algorithm repeats the process of learning a rule 803 for the target class and removing all target class examples covered by the rule 804 until no rule can be generated to satisfy the minimum recall and minimum precision requirements 805 (FIG. 6 ). In the distributed DensiCube algorithm, the removal of the positive examples covered by the rule is done in parallel at each of the distributed servers that hold the data.

In learning a rule, as seen in FIG. 7 , the algorithm starts with the most general rule 901, which covers the entire feature space (all examples both positive and negative) and then conducts a general-to-specific beam search. At each step of the search, the algorithm maintains a set of k best rules (rules with the largest F-measure scores), where k is a user defined parameter. A smaller k translates into a smaller search space, hence a faster search. Each of the best rules is specialized by either adding a new condition or reducing the interval of a condition of a numeric attribute. This search process repeats until the recalls of all rules are smaller than the minimum recall and the best rule is the rule generated by the rule search process. However, any rule learning approach that follows the covering rule generation schema can be used here (i.e., search for the “best” rule, remove the data explained/covered by this rule, and repeat the search process).

Looking at 911, 912, the rule 912 covers all of the positive and negative values, and rule 911 is empty. This rule set is then scored and compared to the base rule 901. The best rule is stored.

Next, the algorithm increments the x-axis split between the rules, creating rule 931 and 932. The rules are scored and compared to the previous best rule.

The process is repeated until all but one increment on the x-axis is left. These rules 941, 942 are then scored, compared, and stored if the score is better.

Once the x-axis has been searched, the best rules are then split on the y-axis (for example, 951,952) to find the best overall rule. This process may be repeated for as many axes as found in the data.

In the Distributed DensiCube algorithm, the functions shown in FIG. 7 are performed independently on multiple data silos operating on the different features that reside on those silos.

FIG. 8 depicts the internal process of generating a singular rule. It starts 2301 with the step of initializing the risk model with a rule that describes the whole representation space 2302 (i.e., a rule with conditional parts satisfying all attributes values). The initial rule is stored as the best rule 2303. This rule is iteratively specialized via a k-beam search process of re-referencing its value ranges for each of the attributes 2304. The specialization includes calculating the F-score 2305, setting the rule set to the K rules with the best F-score 2306, and replacing the Best Rule if this rule has the better F-Score 2307. This continues while there are more rules to specialize 2308. If not, the algorithm outputs the Best Rule 2311 and stops 2309. The top k rules, based on the evaluation measure, are maintained on the candidate list 1105 during this process. All the rules on the candidate list 1105 are evaluated and ranked. The best rule from the candidate rule list (i.e., an internal rule set maintained by the beam search algorithm) enters the model rule list (FIG. 9 ).

In the Distributed DensiCube algorithm, the entire process described in FIG. 8 is distributed, performed on each data silo.

Looking at FIG. 9 , the rule 1101 is analyzed and the F-scores of each sub-rule is recorded in the internal rule set 1102. If the F-score 1102 for the rule 1101 is greater than the last F-score 1103, then the last rule is replaced by the new rule 1104. Various algorithms could be reserved here, for instance, the rule set could be a sorted list of pairs of the rule set and the rule's F-score. Also, the statistics of other machine learning quality measures could be used. When comparing 1103, the list is searched and the new rule inserted 1104, dropping off the lowest scoring rule set.

Every rule induction algorithm uses a metric to evaluate or rank the rules that it generates. Most rule induction algorithms use accuracy as the metric. However, accuracy is not a good metric for imbalanced data sets. The algorithm uses an F-measure as the evaluation metric. It selects the rule with the largest F-measure score. F-measure is widely used in information retrieval and in some machine learning algorithms. The two components of F-measure are recall and precision. The recall of a target class rule is the ratio of the number of target class examples covered by the rule to the total number of target class examples. The precision of a target class (i.e., misstatement class) rule is the ratio of the number of target class examples covered by the rule to the total number of examples (from both the target and non-target classes) covered by that rule. F-measure of a rule r is defined as:

${F - {{measure}(r)}} = \frac{\beta^{2} + 1}{\frac{\beta^{2}}{{recall}(r)} + \frac{1}{{precision}(r)}}$ where β is the weight. When β is set to 1, recall and precision are weighted equally. F-measure favors recall with β>1 and favors precision with β<1. F-measure can be used to compare the performances of two different models/rules. A model/rule with a larger F-measure is better than a model/rule with a smaller F-measure. Prototype Generation Algorithm for Ranking with Rules

The algorithms incorporate a method, called prototype generation, to facilitate ranking with rules. For each rule generated by the rule learning algorithm, two prototypes are created. In generating prototypes, the software ignores symbolic conditions, because examples covered by a rule share the same symbolic values. Given a rule R with m numeric conditions: A_(R1)=V_(R1)∧A_(R2)=V_(R2)∧ . . . ∧A_(Rm)=V_(Rm), where A_(Ri) is a numeric attribute and V_(Ri) is a range of numeric values, the positive prototype of R, P(R)=(p_(R1), p_(R2), . . . , p_(Rm)) and the negative prototype of R N(R)=(n_(R1), n_(R2), . . . , n_(Rm)), where both p_(Ri)∈V_(Ri) and n_(Ri)∈V_(Ri), p_(Ri) and n_(Ri) are computed using the following formulas:

${p_{Ri} = {{\frac{\sum\limits_{e \in {R({POS})}}e_{Ri}}{\left| {R\left( {POS} \right)} \right|}{and}n_{Ri}} = \frac{\sum\limits_{e \in {R({NEG})}}e_{Ri}}{\left| {R({NEG})} \right|}}},$

where R(POS) and R(NEG) are the sets of positive and negative examples covered by R respectively, e=(e_(R1), e_(R2), . . . , e_(Rm)), is an example, and e_(Ri)∈V_(Ri) for i=1, . . . , m, because e is covered by R.

Given a positive prototype P(R)=(p_(R1), p_(R2), . . . , p_(Rm)), and a negative prototype N(R)=(n_(R1), n_(R2), . . . , n_(Rm)) of rule R, the score of an example e=(e_(R1), e_(R2), . . . , e_(Rm)) is 0 if e is not covered by R. Otherwise, e receives a score between 0 and 1 computed using the following formula:

${{score}\left( {e,R} \right)} = \frac{{\sum\limits_{i = 1}^{m}{w_{R_{i}}\frac{\left| {e_{R_{i}} - n_{R_{i}}} \middle| {- \left| {e_{R_{i}} - p_{R_{i}}} \right|} \right.}{\left| {p_{R_{i}} - n_{R_{i}}} \right|}}} + {\sum\limits_{i = 1}^{m}w_{R_{i}}}}{2 \times {\sum\limits_{i = 1}^{m}w_{R_{i}}}}$

where w_(Ri) is the weight of Ri^(th) attribute of R. The value of

$\frac{\left| {e_{R_{i}} - n_{R_{i}}} \middle| {- \left| {e_{R_{i}} - p_{R_{i}}} \right|} \right.}{\left| {p_{R_{i}} - n_{R_{i}}} \right|}$ is between −1 and 1. When e_(Ri)>n_(Ri)>p_(Ri) or p_(Ri)>n_(Ri)>e_(Ri) it is −1. When e_(Ri)>p_(Ri)>n_(Ri) or n_(Ri)>p_(Ri)>e_(R), it is 1. When e_(Ri) is closer to n_(Ri) than p_(Ri), it takes a value between −1 and 0. When e_(Ri) is closer to p_(Ri) than n_(Ri), it takes a value between 0 and 1. The value of score(e, R) is normalized to the range of 0 and 1. If p_(Ri)=n_(Ri), then

$\frac{\left| {e_{R_{i}} - n_{R_{i}}} \middle| {- \left| {e_{R_{i}} - p_{R_{i}}} \right|} \right.}{\left| {p_{R_{i}} - n_{R_{i}}} \right|}$ is set to 0.

w_(Ri) is computed using the following formula.

${w_{Ri} = \frac{\left| {p_{Ri} - n_{Ri}} \right|}{\max_{Ri} - \min_{Ri}}},$

where max_(Ri) and min_(Ri) are the maximum and minimum values of the Ri^(th) attribute of R, respectively. The large difference between p_(Ri) and n_(Ri) implies that the values of positive examples are very different from the values of negative examples on the Ri^(th) attribute, so the attribute should distinguish positive examples from negative one well.

Scoring Using Rules

A rule induction algorithm usually generates a set of overlapped rules. Two methods, Max and Probabilistic Sum, for combining example scores of multiple rules are used by the software. Both methods have been used in rule-based expert systems. The max approach simply takes the largest score of all rules. Given an example e and a set of n rules R={R₁, . . . , R_(n),}, the combined score of e using Max is computed as follows: score(e,R)=max_(i=1) ^(n){Precision(Ri)×score(e,R _(i))} where precision(R_(i)) is the precision of R_(i). There are two ways to determine score(e, R_(i)) for a hybrid rule. The first way returns the score of e received from rule R_(i) for all e's. The second way returns the score of e received from R_(i) only if the score is larger than or equal to the threshold of R_(i), otherwise the score is 0. The first way returns. For a normal rule,

${{score}\left( {e,R_{i}} \right)} = \left\{ \begin{matrix} {1{if}e{}{is}{covered}{by}R_{i}} \\ {0{Otherwise}} \end{matrix} \right.$

For the probabilistic sum method, the formula can be defined recursively as follows. score(e,{R ₁})=score(e,R ₁) score(e,{R ₁ ,R ₂})=score(e,R ₁)+score(e,R ₂)−score(e,R ₁)×score(e,R ₂) score(e,{R ₁ , . . . ,R _(n)})=score(e,{R ₁ , . . . ,R _(n−1)})+score(e,R _(n))−score(e,{R ₁ , . . . ,R _(n−1)})×score(e,R _(n)) Hardware Architecture

Turning to FIG. 10 , we see a hardware architecture for implementing the distributed DensiCube algorithms. At the center of the distributed architecture is the cloud 502, which could be implemented as any type of network, from the Internet to a local area network or similar. Off of the cloud 502 are three servers 503, 505, 507, although any number of servers could be connected to the cloud 502. Each server 503, 505, 507 have a storage facility 509, 506, 508. There storage facilities 509, 506, 508 hold the databases as seen in FIGS. 12A and 12B 2610, 2620, 2630, 2650, 2660, 2670. Personal computer 501 (a laptop, desktop or server 1001) could operate the algorithms to combine the distributed rules or this combination could occur on any server 503, 505, 507. The servers 503, 505, 507 (or data silos 1002) are not ordinary computers as the servers must have the performance to handle the highly computationally intensive efforts to operate the DensiCube algorithm described above. In addition, for many datasets, the storage facilities 509, 506, 508 must be able to hold very large databases 2610, 2620, 2630, 2650, 2660, 2670.

Distributed DensiCube

By allowing for distributed execution, the Distributed DensiCube algorithm allows for a number of important benefits. First of all, privacy of the data assets in the model generation and prediction modes of operation are preserved by keeping the data in its original location and limiting access to the specific data. Second, the cost of implementing complex ETL processes and data warehousing in general is reduced by eliminating the costs of transmission to and storage in a central location. Third, these inventions increase performance by allowing parallel execution of the DensiCube algorithm (i.e., executing the predictive analytics algorithms on a distributed computing platforms). In addition, this distributed algorithm provides the capability for the Distributed DensiCube algorithm to provide unsupervised learning (e.g., fraud detection from distributed data sources). Finally, it allows predictive analytics solutions to operate and react in real time on a low-level transactional streaming data representation without requiring data aggregation.

The Distributed DensiCube approach represents a paradigm shift of moving from the currently predominant Data Centric approaches to predictive analytics, i.e., approaches that transform, integrate, and push data from distributed silos to predictive analytics agents, to the future Decision Centric (predictive analytics bot agent based) approaches, i.e., approaches that push predictive analytics agents to the data locations and by collaborating support decision-making in the distributed data environments.

Essentially, the distributed DensiCube algorithm operates the Densicube algorithm on each server 503, 505, 507 analyzing the local data in the database 509, 506, 508. The best rule or best set of rules 1105 from each server 503, 505, 507 is then combined into the best overall rule. In some embodiments, several servers could work together to derive a best rule, that is combined with another server.

Collaborating predictive analytics bot agents can facilitate numerous opportunities for enterprise data warehousing to provide faster, more predictive, more prescriptive, and time and cost saving decision-making solutions for their customers.

Distributed DensiCube Concept of Operation

The following sections describe the concept behind the Distributed DesiCube approach. As mentioned in the previous section, the Distributed DensiCube solution continues to use the same modeling algorithms as the current non-distributed predictive analytics solution (with modifications to the scoring algorithms to support privacy by preserving the data assets in silos).

1.1 Distributed Modeling

The Distributed DensiCube operates on distributed entities at different logical and/or physical locations.

The distributed entity represents a unified virtual feature vector describing an event (e.g., financial transaction, customer campaign information). Feature subsets 2704, 2705 of this representation are registered/linked by a common identifier (e.g., transaction ID, Enrolment Code, Invoice ID, etc.) 2707. Thus, a distributed data 2701 represents a virtual table 2706 of joined feature subsets 2704, 2705 by their common identifier 2707 (see FIG. 12 ).

In FIG. 12 , there are a number of data silos 2701 located at distributed locations across a network. Two of these data sets 2702, 2703 are called out in FIG. 12 , although any number of data sets could be used. The data sets 2702, 2703 are essentially tables in some embodiments, each with an identifier column. These identifiers provide a link 2707 between records in the two data sets 2702, 2703. In most, but not all, embodiments, there is a one to one correspondence between the records in the data sets 2702, 2703. The records in the data sets 2702, 2703 include feature tables 2704, 2705 of the registered entities 2708 (registered records of the data sets 2702, 2703). These feature tables 2704, 2705 are virtually combined into a virtual feature table 2706.

As an example of the distributed DensiCube algorithm, see FIG. 13 . In this figure, there is an identifier 801 that is a social security number (SSN). The identifier 801 is used in each of the three databases 802, 803, 804. In this simplified example, the bank database 802 contains three fields, the ID (SSN), the Default field, and the amount borrowed. The Default field is a negative if the loan is in default and positive if the loan is current.

The credit agency database 803 contains three fields, the ID(SSN), the Credit Score, and the Total Debt fields. The registry of deeds database 804 also has three fields in this example, the ID(SSN), a home ownership field, and a home value field. In our example, there are a number of reasons that the data in the credit agency 803 needs to be kept separate from the registry data 804, and both of those dataset need to be kept separate from the bank data 802. As a result, the DensiCube algorithm is run three times on each of the databases 802, 803, 804. In another embodiment, two of the servers could be combined, with the algorithm running on one of the servers. This embodiment is seen in FIG. 14B, where the registry data 805 is combined with the bank information 803 to create a scatter diagram to perform the DensiCube algorithm upon. In FIG. 14A, the data from the credit agency database 803 is diagramed independently from the other datasets. The DensiCube algorithm is then run on this scatter diagram.

As seen in FIG. 15 , the Distributed DensiCube is accomplished via a synchronized collaboration of the following components, operating on the laptops, desktops, or servers 1001 (see also 501 in FIG. 10 ) and the plurality of data silos 1002 (see also 503, 505-509 in FIG. 10 ):

Modeler 1003 on the servers 1001

Feature managers 1004 on multiple data silos 1002

Predictors 1009 on the servers 1001

All the above components collaborate to generate models and use them for scoring, and at the same time, preserve the privacy of the data silos 1002. There are three levels of privacy that are possible in this set of inventions. The first level could preserve the data in the silos, providing privacy only for the individual data records. A second embodiment preserves that attributes of the data in the silos, preventing the model from knowing the attributes. The second embodiment may also hide the features (names of attributes) by instead returning an pseudonym for the features. In the third embodiment, the features themselves are kept hidden in the silos. For example, in the first level, that the range of the credit scores is between 575 and 829 is reported back to the modeler 1003, but the individual record is kept hidden. In the second embodiment, the modeler 1003 are told that credit scores are used, but the range is kept hidden on the data silo 1002. In the third embodiment, the credit score feature itself is kept hidden from the modeler 1003. In this third embodiment, the model itself is distributed on each data silo, and the core modeler 1003 has no knowledge of the rules used on each data silo 1002.

The collaboration between distributed components results in a set of rules generated through a rule-based induction algorithm. The DensiCube induction algorithm, in an iterative fashion, determines the data partitions based on the feature rule based on the syntactic representation (e.g., if feature F>20 and F<−25). It dichotomizes (splits) the data into partitions. Each partition is evaluated by computing statistical quality measures. Specifically, the DensiCube uses an F-Score measure to compute the predictive quality of a specific partition. In binary classification the F-score measure is a measure of a test's accuracy and is defined as the weighted harmonic mean of the test's precision and recall. Precision (also called positive predictive value) is the fraction of relevant instances among the retrieved instances, while Recall (also known as sensitivity) is the fraction of relevant instances that have been retrieved over the total amount of instances.

Specifically, the following steps are executed by Distributed DensiCube:

1) The modelers 1003 invokes feature managers 1004 that subsequently start data partitioning based on the local set of features at the data silo 1002. This process is called specialization.

2) Feature managers 1004 push their computed partitions (i.e., using the data identifier as the partition identifier) and their corresponding evaluation measures (e.g., F-score) to modelers 1003.

3) Each feature model manager 1008 compares evaluation measures of the sent partitions and selects the top N best partitions (i.e. specifically it establishes the global beam search for the top preforming partitions and their combinations).

4) Subsequently, the modeler 1003 proceeds to the process of generating partition combinations. The first iteration of such combinations syntactically represent two-conditional rules (i.e., a partition is represented by a joint of lower and upper bounds of two features). Once this process is completed the identifiers of the two-conditional rules are sent to the feature managers 1004. Once received, feature managers 1004 evaluate the new partitions identified by the identifiers by executing the next iteration specialization.

A data manager 1012 is a logical construct which is comprised of a data orchestrator 1005 and one or more feature data managers 1006, which cooperate to manage data sets. Data sets can be used to create models and/or to make predictions using models. A data orchestrator 1005 is a component which provides services to maintain Data Sets, is identified by its host domain and port, and has a name which is not necessarily unique. A feature data manager 1006 is a component which provides services to maintain Feature Data Sets 1203, is identified by its host domain and port, and has a name which is not necessarily unique. A data set lives in a data orchestrator 1005, has a unique ID within the data orchestrator 1005, consists of a junction of Feature Data Sets 1203, joins Feature Data Sets 1203 on specified unique features, and is virtual tabular data (see FIG. 17 ). Each column 1206, 1207 is a feature from a Feature Data Set 1203. The columns also are associated with a feature data manager 1202. Each row is a junction of Events 1204 from each Feature Data Set 1203. The join feature attribute values 1205 are the joined features attributes from each row and column. The entire junction is the table 1201.

A model manager 1013 is a logical construct which is comprised of a model orchestrator 1007 and one or more feature model managers 1008, which cooperate to generate models.

A prediction manager 1014 is a logical construct which is comprised of a prediction orchestrator 1010 and one or more feature prediction managers 1011, which cooperate to create scores and statistics (a.k.a. predictions).

1.2 Distributed Scoring

The distributed scoring process is accomplished in two steps. First, partial scores are calculated on each feature manager 1004 on each server. Then, complete scores are calculated from the partial scores.

The combined scores are the sum of the scores from each server divided by the sum of the weights from each server, multiplied by two:

${{score}\left( {e,R} \right)} = \frac{{ScoreA} + {ScoreB}}{2 \times {\sum\limits_{i = 1}^{m}w_{Ri}}}$

In this formula, the score for server A and B are similar to the DensiCube scoring described above.

$\begin{matrix} {{ScoreA} = {\sum\limits_{i = 1}^{m}{w_{Ri}\left( {\frac{{❘{e_{Ri} - n_{Ri}}❘} - {❘{e_{Ri} - p_{Ri}}❘}}{❘{p_{Ri} - n_{Ri}}❘} + 1} \right)}}} \\ {{ScoreB} = {\sum\limits_{i = 1}^{m}{w_{Ri}\left( {\frac{{❘{e_{Ri} - n_{Ri}}❘} - {❘{e_{Ri} - p_{Ri}}❘}}{❘{p_{Ri} - n_{Ri}}❘} + 1} \right)}}} \end{matrix}$

The weights are also determined for each location, as above.

$\begin{matrix} {w_{Ri} = \frac{\left| {p_{Ri} - n_{Ri}} \right|}{\max_{Ri} - \min_{Ri}}} \\ {w_{Ri} = \frac{\left| {p_{Ri} - n_{Ri}} \right|}{\max_{Ri} - \min_{Ri}}} \end{matrix}$

With the combined score, we have a metric to show the validity of the selected model.

2.0 Initial Architectural Concept of Operation and Requirements

2.1 Feature Manager 1004

At the initialization of the machine learning model generation process, each feature manager 1004 is setup on the local servers 1002. Each feature manager 1004 must be uniquely named (e.g., within the subnet where it lives). The port number where the feature manager 1004 can be reached needs to be defined. Access control needs to be configured, with a certificate for the feature manager 1004 installed and the public key for each modeler 1003 and feature prediction manager 1011 installed to allow access to this feature manager 1004. Each local feature manager 1004 needs to broadcast the name, host, port and public key of the feature manager 1004. In some embodiments, the feature manager 1004 needs to listen to other broadcasts to verify uniqueness.

Next, the data sources are defined. A seen in FIGS. 13 and 17 , the data source is tabular form (Rows & Columns). In another embodiment, a Relation Data Source is a collection of Data Tables which themselves contain tabular data. The important characteristic is to be able to define a Data Set Template which results in the Column definition of tabular data. Each Data Source must be uniquely identified by name within a feature manager 1004. Each Column must be uniquely identified by name within a Data Source. At least one Column in each Data Source must be unique and suitable for joining to other Data Sources. It must have meaning outside the Data Source such that the feature model managers 1008 can join the Data Source to other Data Sources.

Each Data Source shall be described by a name for the data source and a plurality of columns, where each column has a name, a data type, and a uniqueness field. Data Sources can be used by feature model managers 1008 or feature prediction managers 1011 or both. Data Sources are probably defined by calls from a modeler 1003.

The next step involves defining the Data Set Templates. A Data Set Template is a specification of how to join Data Sources defined within a feature data manager 1006. Each Data Set Template must be uniquely identified by name within a feature data manager 1006. A Data Set Template is a definition of Columns without regard to the Rows in each Data Source. For example, a Data Set Template could be represented by a SQL select statement with columns and join conditions, but without a where clause to limit rows. Data Set Templates can be used by feature model managers 1008 or feature prediction managers 1011 or both. Data Set Templates are probably defined by calls from a feature model manager 1008.

Once the Data Set Templates are setup, the next step is to define the Data Sets. A Data Set is tabular data which is a subset of a data from the Data Sources defined within a feature data manager 1006. Each Data Set must be uniquely identified by name within a feature data manager 1006. A Data Set is defined by a Data Set Template to define the columns and a set of filters to define the rows. For example, the filter could be the where clause in a SQL statement. Data Sets can be used by modelers 1003 or feature prediction managers 1011 or both. Data Sets are probably defined by calls from a modeler 1003.

2.2 Modeler 1003

In FIG. 15 the relationship between the modelers 1003, the predictors 1009, and the feature managers 1004.

In the setup of the model orchestrator 1007, each modeler 1003 should be uniquely named, at least within the subnet where it lives. However, in some embodiments, the uniqueness may not be enforceable. Next the access control is configured by installing a certificate for the modeler 1003 and installing the public key for each feature manager 1004 containing pertinent data. The public key for each feature prediction manager 1011 is also installed, to which this modeler 1003 can publish.

Once set up, the model orchestrator 1007 establishes a connection to each feature model manager 1008.

Then the Model Data Set templates are defined. A Model Data Set Template is a conjunction of Data Set Templates from feature data managers 1006. Each Data Set Template must be uniquely named within the feature manager 1004. The Data Set Templates on feature data managers 1006 are defined, as are the join conditions. A join condition is an equality expression between unique columns on two Data Sets. For example <Feature Manager A>.<Data Set Template 1>.<Column a>==<Feature Manager B>.<Data Set Template 2>.<Column b>. Each data set participating in the model data set must be joined such that a singular virtual tabular data set is defined.

After the templates are defined, the model data sets themselves are defined. A Model Data Set is a conjunction of Data Sets from feature data managers 1006. The Model Data Set is a row filter applied to a Model Data Set Template. Each Data Set must be uniquely named within a Model Data Set Template. Then the data sets on the feature data managers 1006 are defined. This filters the rows.

Next, the Modeling Parameters are defined. Modeling Parameters define how a Model is created on any Model Data Set which is derived from a Model Data Set Template. Each Modeling Parameters definition must be unique within a Model Data Set Template.

Then, a model is created and published. A model is created by applying Modeling Parameters to a Model Data Set. Each Model must be uniquely identified by name within a Model Data Set. A Model can be published to a feature prediction manager 1011. Publishing will persist the Model artifacts in the feature model managers 1008 and feature prediction managers 1011. Following are some of the artifacts which will be persisted to either the feature data manager 1008 and/or feature prediction manager 1011: Data set templates, model data set templates, and the model.

2.3 Prediction Orchestrator 1010

The prediction orchestrator 1010 setup begins with the configuration of the access control. This is done by installing a certificate for the feature prediction manager 1011 and installing the public key for each modeler 1003 allowed to access this prediction orchestrator 1010. The public key for each feature manager 1004 containing pertinent data is also installed. Each prediction orchestrator 1010 should be uniquely named, but in some embodiments this may not be enforced.

Next, a connection to each feature prediction manager 1011 is established and to a model orchestrator 1007. The model orchestrator 1007 will publish the Model Data Set Template and Model to the prediction orchestrator 1010.

The scoring data sets are then defined. A Scoring Data Set is a conjunction of Data Sets from the feature data managers 1006. It is a row filter applied to a Model Data Set Template. Each Data Set must be uniquely named within a Model Data Set Template. The data sets on the feature data managers 1006 are defined (this filters the rows).

Then the Scoring Parameters are defined. Scoring Parameters define how Scores are calculated on any Score Data Set which is derived from a Model Data Set Template. Each Scoring Parameters definition must be unique within a Model Data Set Template.

Finally, a Scoring Data Set is defined. Partial Scores are calculated on each feature manager 1004 in the feature prediction manager 1011. See FIG. 16A. Complete Scores are then calculated by the prediction orchestrator 1010 from the partial Scores. See FIG. 16B for the calculation combining the partial scores.

Looking to FIG. 18 , we see the distributed nature of the Distributed DensiCube algorithm. The algorithm starts 1301 by initializing the software. The data requirements are setup, and the distributed sources of the data are identified 1302. Once the data features have been identified, a list of the IDs 801, the learning results (e.g. the Loan Results in 802), and the perhaps the desired features (e.g. Amount Borrowed n 802, Credit Score and Total Debt in 803, Home Ownership and Home Value in 804) are sent 1303 to the data silos 1002. In some embodiments, the desired features are not sent, instead, the feature manager 1004 on the data silo 1002 determines the features. While the FIG. 13 embodiment has a tri-state results (+, −, and blank), some embodiments only use a two state results set (“+” or blank). In the two state embodiment, there is no need to transmit the learning results; instead only a list of IDs is sent, with the implication that the IDs specified are the set of positive results.

The feature managers 1004 on each of the data silos 1002 then initialize the site 1311, 1321, 1331. The data on the silo 1002 is then sliced, using the list of IDs and the features 1312, 1322, 1332 into a data set of interest, by the feature data manager 1006. The DensiCube algorithm 1313, 1323, 1333 is then run by the feature model manager 1008 on the data of interest, as seen in FIGS. 7, 8, and 91 . Once the DensiCube algorithm 1313, 1323, 1333 is complete, the rule and the F-score are finalized by the feature prediction managers 1011, the rule and F-Scores are returned 1314, 1324, 1334 to the prediction orchestrator 1010. In some embodiments, only the F-Scores are returned 1314, 1324, 1334, and the rules are maintained locally in the feature managers 1004.

The rules, in some embodiments, are then returned to the prediction orchestrator 1010 where they are combined into an overall rule 1304, as seen in FIG. 16A. Next, the F-Scores are combined 1304 by the prediction orchestrator 1010 into an overall F-Score for the generated rule using the formulas in FIG. 16B. And the Distributed DensiCube algorithm is complete 1305.

Modifications to the scoring algorithms to support privacy preserving in the data silos.

The above description of the embodiments, alternative embodiments, and specific examples, are given by way of illustration and should not be viewed as limiting. Further, many changes and modifications within the scope of the present embodiments may be made without departing from the spirit thereof, and the present invention includes such changes and modifications. 

The invention claimed is:
 1. An improved cash management system comprising: one or more banking rails connected to one or more banks; a multi-core machine learning server with a floating-point processor connected to the one or more banking rails; an Internet connected to a plurality of distributed servers and to the multi-core machine learning server; the plurality of distributed servers each containing a data silo programmed to form a distributed machine learning model using a machine learning algorithm to: generate one or more rules for each feature set in each silo, calculate an F-score for each generated rule, and combine the the rules with a highest F-score to create the distributed machine learning model; and a plurality of data storage facilities connected to the multi-core machine learning server, wherein the multi-core machine learning server is configured to: retrieve a set of payment and receipt transactions from the plurality of data storage facilities for a given past date range, perform an ARIMA analysis in each currency account on the set of payment and receipt transactions to create a forecast of receipts and a forecast of payments for a future date range, subtracts the forecast of the payments from the forecast of the receipts, adds in a previous day cash balance to create a forecast cash balance time series for each currency account, retrieve historical banking rate information, perform the ARIMA analysis on the historical banking rate information to create a forecast banking rate information time series, execute the distributed machine learning model locally and on the distributed servers' data silos on the forecast cash balance time series for each currency account and on the forecast banking rate information time series to determine a set of optimal cash transfers between each currency account and one or more sweep accounts, and execute instructions to make payments and cash transfers.
 2. The improved cash management system of claim 1 wherein the machine learning algorithm is Densicube.
 3. The improved cash management system of claim 1 wherein the machine learning algorithm is K-means.
 4. The improved cash management system of claim 1 wherein the future date range is user configurable.
 5. The improved cash management system of claim 1 wherein the forecast of the payments is modified to incorporate actual planned payments.
 6. The improved cash management system of claim 1 wherein the forecast of the receipts is modified to incorporate actual incoming receipts.
 7. The improved cash management system of claim 1 wherein the execution of the instructions to make the payments and the cash transfers are made through the transfer of one or more files to the plurality of banking rails.
 8. The improved cash management system of claim 1 wherein each currency account further comprises currency accounts for a plurality of subsidiaries.
 9. The improved cash management system of claim 1 wherein the bank rate information is retrieved from the one or more banks over the banking rails.
 10. The improved cash management system of claim 1 wherein the bank rate information comprises interest rates, foreign exchange rates, and money transfer costs.
 11. A non-transitory computer readable medium having stored thereon payment cash management software programmed: to retrieve F-scores and one or more rules from a plurality of distributed servers across an Internet, the F-scores and the one or more rules were generated by the plurality of distributed servers to represent feature sets stored on the plurality of distributed servers; to create a distributed machine learning model using a machine learning algorithm that combines the F-scores and the one or more rules from the plurality of distributed servers; to retrieve a set of payment and receipt transactions from a plurality of data storage facilities for a given past date range for a plurality of currency accounts with a multi-core machine learning server with a floating point processor that is connected to the plurality of data storage facilities; to perform, with the multi-core machine learning server, an ARIMA analysis in each currency account on the set of payment and receipt transactions to create a forecast of receipts and a forecast of payments for a future date range; to subtract, with the multi-core machine learning server, the forecast of the payments from the forecast of the receipts and to add in a previous day cash balance to create a forecast cash balance time series for each currency account; to retrieve historical banking rate information from the plurality of data storage facilities on the multi-core machine learning server; to perform the ARIMA analysis on the historical banking rate information to create a forecast banking rate information time series; to execute, by the multi-core machine learning server, the distributed machine learning model on the forecast cash balance time series for each currency account and the forecast banking rate information time series to determine a set of optimal cash transfers between each currency account and one or more sweep accounts; and to execute, by the multi-core machine learning server, instructions to make payments and cash transfers.
 12. The non-transitory computer readable medium of claim 11 wherein the machine learning algorithm is K-means.
 13. The non-transitory computer readable medium of claim 11 wherein the machine learning algorithm is Random Forrest.
 14. The non-transitory computer readable medium of claim 11 wherein the payment cash management software is programmed to modify the forecast of the payments with actual planned payments.
 15. The non-transitory computer readable medium of claim 11 wherein the payment cash management software is programmed to modify the forecast of the receipts with actual planned receipts.
 16. The non-transitory computer readable medium of claim 11 wherein each currency account further comprises currency accounts for a plurality of subsidiaries.
 17. The non-transitory computer readable medium of claim 11 wherein the payment cash management software is programmed to transfer one or more files to a plurality of banking rails to effectuate the execution of the instructions to make the payments and the cash transfers.
 18. The non-transitory computer readable medium of claim 17 wherein the payment cash management software is programmed to retrieve the bank rate information from the one or more banks over the banking rails.
 19. The non-transitory computer readable medium of claim 11 wherein the bank rate information comprises interest rates, foreign exchange rates, and money transfer costs. 